
package com.yuhanginfo.modules.sys.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;

import com.yuhanginfo.common.persistence.DataEntity;

/**
 * 物料Entity
 * @author yinhao
 * @version 2017-09-21
 */
public class Materiel extends DataEntity<Materiel> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 物料号
	private String cnName;		// 物料名称
	private String enName;		// 物料英文名
	private String partsCode;		// 配件号
	private String partsCnName;		// 配件名称
	private String partsEnName;		// 配件英文名
	private Integer venderId;		// 厂家号
	private String venderCode;		// 厂家号
	private String storeCode;		// 门店号
	private String erp;		// ERP码
	private Integer classesId;		// 类目id
	private String sysUserId;		// 物料来源，添加此条信息的用户名
	private Integer auditingStatus;		// 审核状态:0未审核,1已审核
	private String remark;		// 物料描述
	private String auditingRemark;		// 审核描述
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	private Date beginUpdateDate;		// 开始 更新时间
	private Date endUpdateDate;		// 结束 更新时间
	private String venderName;
	private Integer classessOnceId;//一级类目id
	private Integer classessTwiceId;//二级类目id
	private Integer classessThirdId;//三级类目id
	private String pCode;
	private String vName;
	private String userName;
	private String code1;
	private String className;
    private String name1;
    private String name2;
    private String name3;
	private String gName;
	private String id;
	
	public Materiel() {
		super();
	}

	public Materiel(String id){
		super(id);
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName1() {
		return name1;
	}

	public void setName1(String name1) {
		this.name1 = name1;
	}

	public String getName2() {
		return name2;
	}

	public void setName2(String name2) {
		this.name2 = name2;
	}

	public String getName3() {
		return name3;
	}

	public void setName3(String name3) {
		this.name3 = name3;
	}

	public String getpCode() {
		return pCode;
	}

	public void setpCode(String pCode) {
		this.pCode = pCode;
	}

	public String getvName() {
		return vName;
	}

	public void setvName(String vName) {
		this.vName = vName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getCode1() {
		return code1;
	}

	public void setCode1(String code1) {
		this.code1 = code1;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public Integer getClassessOnceId() {
		return classessOnceId;
	}

	public void setClassessOnceId(Integer classessOnceId) {
		this.classessOnceId = classessOnceId;
	}

	public Integer getClassessTwiceId() {
		return classessTwiceId;
	}

	public void setClassessTwiceId(Integer classessTwiceId) {
		this.classessTwiceId = classessTwiceId;
	}

	public Integer getClassessThirdId() {
		return classessThirdId;
	}

	public void setClassessThirdId(Integer classessThirdId) {
		this.classessThirdId = classessThirdId;
	}



	@Length(min=1, max=50, message="物料号长度必须介于 1 和 50 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=50, message="物料名称长度必须介于 0 和 50 之间")
	public String getCnName() {
		return cnName;
	}

	public void setCnName(String cnName) {
		this.cnName = cnName;
	}
	
	@Length(min=0, max=50, message="物料英文名长度必须介于 0 和 50 之间")
	public String getEnName() {
		return enName;
	}

	public void setEnName(String enName) {
		this.enName = enName;
	}
	
	@Length(min=0, max=50, message="配件号长度必须介于 0 和 50 之间")
	public String getPartsCode() {
		return partsCode;
	}

	public void setPartsCode(String partsCode) {
		this.partsCode = partsCode;
	}
	
	@Length(min=0, max=50, message="配件名称长度必须介于 0 和 50 之间")
	public String getPartsCnName() {
		return partsCnName;
	}

	public void setPartsCnName(String partsCnName) {
		this.partsCnName = partsCnName;
	}
	
	@Length(min=0, max=50, message="配件英文名长度必须介于 0 和 50 之间")
	public String getPartsEnName() {
		return partsEnName;
	}

	public void setPartsEnName(String partsEnName) {
		this.partsEnName = partsEnName;
	}
	
	public Integer getVenderId() {
		return venderId;
	}

	public void setVenderId(Integer venderId) {
		this.venderId = venderId;
	}
	
	@Length(min=0, max=30, message="门店号长度必须介于 0 和 30 之间")
	public String getStoreCode() {
		return storeCode;
	}

	public void setStoreCode(String storeCode) {
		this.storeCode = storeCode;
	}
	
	@Length(min=0, max=20, message="ERP码长度必须介于 0 和 20 之间")
	public String getErp() {
		return erp;
	}

	public void setErp(String erp) {
		this.erp = erp;
	}
	
	public Integer getClassesId() {
		return classesId;
	}

	public void setClassesId(Integer classesId) {
		this.classesId = classesId;
	}
	
	public String getSysUserId() {
		return sysUserId;
	}

	public void setSysUserId(String sysUserId) {
		this.sysUserId = sysUserId;
	}
	
	public Integer getAuditingStatus() {
		return auditingStatus;
	}

	public void setAuditingStatus(Integer auditingStatus) {
		this.auditingStatus = auditingStatus;
	}
	
	@Length(min=0, max=255, message="物料描述长度必须介于 0 和 255 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Length(min=0, max=255, message="审核描述长度必须介于 0 和 255 之间")
	public String getAuditingRemark() {
		return auditingRemark;
	}

	public void setAuditingRemark(String auditingRemark) {
		this.auditingRemark = auditingRemark;
	}
	
	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}
		
	public Date getBeginUpdateDate() {
		return beginUpdateDate;
	}

	public void setBeginUpdateDate(Date beginUpdateDate) {
		this.beginUpdateDate = beginUpdateDate;
	}
	
	public Date getEndUpdateDate() {
		return endUpdateDate;
	}

	public void setEndUpdateDate(Date endUpdateDate) {
		this.endUpdateDate = endUpdateDate;
	}

	public String getVenderName() {
		return venderName;
	}

	public void setVenderName(String venderName) {
		this.venderName = venderName;
	}

	public String getVenderCode() {
		return venderCode;
	}

	public void setVenderCode(String venderCode) {
		this.venderCode = venderCode;
	}

	public String getgName() {
		return gName;
	}

	public void setgName(String gName) {
		this.gName = gName;
	}
	
		
}